#ifndef HPLC_QINFINE_COLLECTORPARSESYSTEMPACKET_H
#define HPLC_QINFINE_COLLECTORPARSESYSTEMPACKET_H

#include <QObject>
#include "modulehplccollectordefine.h"

namespace hplc
{
namespace qinfine
{

class CollectorProtocolData;
class CollectorParseSystemPacket : QObject
{
    Q_OBJECT

public:
    CollectorParseSystemPacket(CollectorProtocolData &data, CollectorParam &param, QObject *parent = nullptr);

    void parseSet(quint8 pfc, char *data);
    void parseGet(quint8 pfc, char *data);

signals:
    void parseCompleted(int id, const QVariant &data);

    void setWorkMode(quint8 workMode);
    void setXMan(quint8 isStart);
    void setYMan(quint8 isStart);
    void setValveMan(quint8 isStart);
    void setXHome(quint8 isStart);


protected:
    CollectorProtocolData *m_d = nullptr;

    CollectorParam 		*m_param;

};

} // qinfine
} // hplc

#endif // HPLC_QINFINE_COLLECTORPARSESYSTEMPACKET_H
